package com.gupaoedu.demo.singleton.hungry;


// 饿汉式单例： 缺点->浪费内存空间
public class HungrySingleton {
    private static final HungrySingleton hungrySingleton = new HungrySingleton();
    private HungrySingleton(){}
    public static HungrySingleton  getInstance(){
        return  hungrySingleton;
    }
}
